<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
    template="admin/admin-template.xhtml">  
   <h:outputStylesheet>
        .ecol1 {
        vertical-align: top;
        padding-right: 25px
        }
 
        .ecol2 {
        vertical-align: top;
        border-left: #ACBECE 1px solid;
        padding-left: 10px
        }
 
        .rich-calendar-tool-btn {
        font-family: Arial, Verdana;
        }
    </h:outputStylesheet>
	<ui:define name="title">Change Password</ui:define>
	<ui:define name="body">
		<div id="administration_main">
		<h1> <span>Смяна на парола</span></h1>
	    <p>Обузначените със <span style="color:red;">*</span> полета са задължителни !</p>
		<h:form id="sdasda">
       	<rich:panel id="adduserPan">
            <f:facet name="header">
                <h:outputText value="Смяна на парола" />
            </f:facet>
            <table>
            	<tr>
            		<td><span>*</span> Стара парола</td>
            		<td><h:inputSecret id="opass" requiredMessage=" празно поле"  required="true" value="#{changePass.oldPass}" /> 
            		<h:message style="color:red;" for="opass"> </h:message>
            		</td>
            	</tr>
            	<tr>
            		<td><span>*</span> Нова парола</td>
            		<td><h:inputSecret id="npass" requiredMessage=" празно поле"  required="true" value="#{changePass.pass}" />
            		<h:message style="color:red;" for="npass"> </h:message>
            		</td>
            	</tr>
            	<tr>
            		<td><span>*</span> Повторете новата парола</td>
            		<td><h:inputSecret id="nrpass" requiredMessage=" празно поле"  required="true" value="#{changePass.rePass}" /> 
            		<h:message style="color:red;" for="nrpass"> </h:message>
            		</td>
            	</tr>
            	
            </table>
  	     </rich:panel>
            	<h:commandButton styleClass="btnSubmitUserAdd" value="Смени парола" action="#{changePass.change(changePass.pass,changePass.rePass,changePass.oldPass)}" />
            	
		</h:form>
		
		</div>
	</ui:define>
</ui:composition>

